class User < ActiveRecord::Base
  acts_as_authentic


  validates :msisdn,  :presence => true,
                      :uniqueness => true,
                      :length => { :is => 9 }

  def self.find_by_login_or_msisdn(login)
    find_by_login(login) || find_by_msisdn(login)
  end
end

